package com.zy.openchat.core.model.photo;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;


public class ThumbnailFormatInfo implements Parcelable {
    //@thumbnailFormatGif, thumbnailFormatJpeg, thumbnailFormatMpeg4,
    //thumbnailFormatPng, thumbnailFormatTgs, and thumbnailFormatWebp.
    @SerializedName("@type")
    public String type;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.type);
    }

    public ThumbnailFormatInfo() {
    }

    protected ThumbnailFormatInfo(Parcel in) {
        this.type = in.readString();
    }

    public static final Creator<ThumbnailFormatInfo> CREATOR = new Creator<ThumbnailFormatInfo>() {
        @Override
        public ThumbnailFormatInfo createFromParcel(Parcel source) {
            return new ThumbnailFormatInfo(source);
        }

        @Override
        public ThumbnailFormatInfo[] newArray(int size) {
            return new ThumbnailFormatInfo[size];
        }
    };
}
